package com.itheima.d02_xml;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;

import java.util.ArrayList;
import java.util.List;

public class Test02 {
    public static void main(String[] args) throws DocumentException {
        //
        //1.
        ArrayList<User> list = new ArrayList<>();

        //2.
        //2.1
        SAXReader Reader = new SAXReader();

        //2.2
        Document doc = Reader.read("E:\\soft_install\\ideaIU\\JavaProject\\day12_properties\\src\\com\\itheima\\d02_xml\\users.xml");


        //2.3
        Element users = doc.getRootElement();

        //2.4
        List<Element> userElements = users.elements();
        for (Element userElement : userElements) {
            //
        }

        //2.5


        //2.6





    }
}
